<div class="form">

	<?php
	$properties = array(
		'id'=>'password-form',
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	$htmlOptions = array('size'=>60, 'maxlength'=>255, 'class'=>'fill');
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'oldPassword');
		echo $form->passwordField($model, 'oldPassword', $htmlOptions);
		echo $form->error($model, 'oldPassword');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'newPassword');
		echo $form->passwordField($model, 'newPassword', $htmlOptions);
		echo $form->error($model, 'newPassword');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'confirmPassword');
		echo $form->passwordField($model, 'confirmPassword', $htmlOptions);
		echo $form->error($model, 'confirmPassword');
		?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

	<?php $this->endWidget(); ?>

</div><!-- form -->